import { i18nRender } from '@/locales'

export const feedbackListBackendCol = [
  {
    title: i18nRender('all.autotext334'),
    dataIndex: 'id',
    width: 100,
    scopedSlots: { customRender: 'index' }
  },
  {
    title: i18nRender('all.autotext1246'),
    dataIndex: 'sysVersion',
    width: 100
  },
  {
    title: i18nRender('all.autotext320'),
    dataIndex: 'content',
    scopedSlots: { customRender: 'content' }
  },
  {
    title: i18nRender('all.autotext992'),
    dataIndex: 'proNo',
    width: 200
  },
  {
    title: i18nRender('all.autotext1207'),
    dataIndex: 'roleName',
    width: 100,
    customRender: (text, record) => {
      return text ? `${text}-${record.name}` : record.name
    }
  },
  {
    title: i18nRender('all.autotext540'),
    dataIndex: 'createTime',
    width: 200
  },
  {
    align: 'center',
    title: i18nRender('all.autotext187'),
    dataIndex: 'action',
    width: 100,
    scopedSlots: { customRender: 'action' }
  }
]

export const systemNoticeCol = [
  {
    title: i18nRender('all.autotext334'),
    dataIndex: 'id',
    width: 100,
    scopedSlots: { customRender: 'id' }
  },
  {
    title: i18nRender('all.autotext818'),
    dataIndex: 'title',
    scopedSlots: { customRender: 'title' }
  },
  {
    title: i18nRender('all.autotext175'),
    dataIndex: 'status',
    width: 200,
    scopedSlots: { customRender: 'status' }
  },
  {
    title: i18nRender('all.autotext1458'),
    dataIndex: 'account',
    width: 100
  },
  {
    title: i18nRender('all.autotext54'),
    dataIndex: 'createTime',
    width: 200
  },
  {
    align: 'center',
    title: i18nRender('all.autotext187'),
    dataIndex: 'action',
    width: 100,
    scopedSlots: { customRender: 'action' }
  }
]
